<!DOCTYPE html>
<html>
<head>
<!--[if lt IE 9]>
        <script type="text/javascript" src="{dede:global.cfg_cmspath/}/skin/js/html5.js"></script>
        <![endif]-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no" />
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field name='keywords'/}" />
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />
<script type="text/javascript" src="{dede:global.cfg_cmspath/}/skin/js/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_cmspath/}/skin/css/animate.min.css">
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_cmspath/}/skin/css/owl.carousel.min.css">
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_cmspath/}/skin/css/global.css">
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_cmspath/}/skin/css/style.css">
<script type="text/javascript" src="{dede:global.cfg_cmspath/}/skin/js/owl.carousel.js"></script>
<script type="text/javascript" src="{dede:global.cfg_cmspath/}/skin/js/wow.js"></script>
<script type="text/javascript" src="{dede:global.cfg_cmspath/}/skin/js/main.js"></script>
</head>
<body>
<!-------------------------------------- 头部开始 --------------------------------------> 
{dede:include filename="head.htm"/} 
<!-------------------------------------- 头部结束 --------------------------------------> 
<!-------------------------------------- 内容开始 -------------------------------------->
{dede:include filename="banner.htm"/}
<div class="mainer">
  <div class="page">
    <div class="wrap">
      <div class="page_tit">
        <h3 class="wow fadeInUp" data-wow-delay=".1s"><span><em>{dede:field.typeid runphp='yes'}$ID = @me; $sql = "SELECT * FROM `dede_arctype` WHERE id=$ID";$query = mysql_query($sql);$row=mysql_fetch_array($query); $relID = "$row[reid]"; if($relID == 0) {@me = $row[typename];}else{$sql = "SELECT `typename` FROM `dede_arctype` WHERE id=$relID";$query = mysql_query($sql);$row=mysql_fetch_array($query); @me = $row[typename];}{/dede:field.typeid}</em></span></h3>
      </div>
      <div class="page_contact">
        <div class="map"> <img src="{dede:global.cfg_cmspath/}/skin/images/map.jpg"/> </div>
        <div class="web">
          <div class="text">
            <h4>公司总部</h4>
            <p>地址：{dede:global.cfg_add/}</p>
            <p>电话：{dede:global.cfg_tel/}</p>
            <p>邮箱：{dede:global.cfg_email/}</p>
          </div>
          <form action="/plus/diy.php" enctype="multipart/form-data" method="post" onsubmit="return checkForm();">
            <input type="hidden" name="action" value="post" />
            <input type="hidden" name="diyid" value="1" />
            <input type="hidden" name="do" value="2" />
            <div class="tab">
              <ul>
                <li> <span>姓名</span>
                  <div class="div_inp">
                    <input type='text' name='name' id='name'/>
                  </div>
                </li>
                <li> <span>邮箱</span>
                  <div class="div_inp">
                    <input type='text' name='email' id='email'/>
                  </div>
                </li>
                <li> <span>电话</span>
                  <div class="div_inp">
                    <input type='text' name='tel' id='tel'/>
                  </div>
                </li>
                <li class="last"> <span>内容</span>
                  <div class="div_textarea">
                    <textarea type='text' name='content' id='content'></textarea>
                  </div>
                </li>
              </ul>
              <input type="hidden" name="dede_fields" value="name,text;email,text;tel,text;content,text" />
              <input type="hidden" name="dede_fieldshash" value="18793de49a56b2ea215f7eab12196425" />
              <div class="clear"></div>
              <div class="btn_tj"> <input type="submit" value="提交" id="tj"> </div>
            </div>
          </form>
          <script>
				$(function(){
					$('#tj').click(function(){
						//alert(1)
						if($('#name').val()==''){alert('请输入您的姓名！'); $("#name").focus(); return false;}
						
						if ($("#email").val() == "") { alert("请输入电子邮箱!"); return false; } 
						if (!$("#email").val().match(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)) { alert("电子邮箱格式不正确"); $("#email").focus(); return false; }
						if ($("#tel").val() == "") { alert("请输入你的手机！"); $("#tel").focus(); return false; } 
						if (!$("#tel").val().match(/^(((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(17[0-9]{1})|(18[0-9]{1})|(19[0-9]{1}))+\d{8})$/)) { alert("手机号码格式不正确！"); $("#tel").focus(); return false;}  
						if($('#content').val()==''){alert('请输入留言内容！');return false;}
					})
				})
			</script>
          <div class="clear"></div>
        </div>
      </div>
    </div>
  </div>
</div>
<!-------------------------------------- 内容结束 --------------------------------------> 
<!-------------------------------------- 尾部开始 --------------------------------------> 
{dede:include filename="footer.htm"/}
</body>
</html>